unit SobreFR;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, IpHtml, Ipfilebroker, LResources, Forms,
  Controls, Graphics, Dialogs, ComCtrls, StdCtrls, ButtonPanel, Grids, ExtCtrls,
  MainFr;

type

  { TSobreFrame }

  TSobreFrame = class(TMainFrame)
    Image1: TImage;
    Image2: TImage;
    Image3: TImage;
    Image4: TImage;
    Image5: TImage;
    Image6: TImage;
    Image7: TImage;
    Image8: TImage;
    Image9: TImage;
    Label1: TLabel;
    Memo2: TMemo;
    PageControl1: TPageControl;
    Panel1: TPanel;
    Panel10: TPanel;
    Panel11: TPanel;
    Panel12: TPanel;
    Panel13: TPanel;
    Panel14: TPanel;
    Panel15: TPanel;
    Panel16: TPanel;
    Panel17: TPanel;
    Panel2: TPanel;
    Panel3: TPanel;
    Panel4: TPanel;
    Panel5: TPanel;
    Panel6: TPanel;
    Panel7: TPanel;
    Panel8: TPanel;
    Panel9: TPanel;
    PrincipalImageList: TImageList;
    PrincipalToolBar: TToolBar;
    FecharToolButton: TToolButton;
    TabSheet1: TTabSheet;
    TabSheet2: TTabSheet;
    TabSheet3: TTabSheet;
    procedure FecharToolButtonClick(Sender: TObject);
    procedure URLMouseEnter(Sender: TObject);
    procedure URLMouseLeave(Sender: TObject);
    procedure URLClick(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end;

implementation

uses LCLIntf,Initializator;

{ TSobreFrame }

procedure TSobreFrame.URLMouseEnter(Sender: TObject);
begin
  TControl(Sender).Font.Style := [fsUnderLine,fsBold];
  TControl(Sender).Font.Color := clRed;
  TControl(Sender).Cursor := crHandPoint;
end;

procedure TSobreFrame.FecharToolButtonClick(Sender: TObject);
begin
  TheControl.BackFrame();
end;

procedure TSobreFrame.URLMouseLeave(Sender: TObject);
begin
  TControl(Sender).Font.Style := [fsBold];
  TControl(Sender).Font.Color := clBlue;
  TControl(Sender).Cursor := crDefault;
end;

procedure TSobreFrame.URLClick(Sender: TObject);
begin
  OpenURL(TControl(Sender).Caption);
end;

initialization
  {$I sobrefr.lrs}

end.

